# configure the account system
require File.dirname(__FILE__) + '/lib/account_configuration'
require File.dirname(__FILE__) + '/lib/authenticated_system'
require File.dirname(__FILE__) + '/lib/account_controller'
require File.dirname(__FILE__) + '/lib/account_model'
require File.dirname(__FILE__) + '/lib/account_notify'

# include authenticated system in all controllers
ActionController::Base.send :include, Account::AuthenticatedSystem


# set some default configuration values
Account::AccountConfiguration.set_config :email_from, 'from@example.com'
Account::AccountConfiguration.set_config :admin_email, 'admin@example.com'
Account::AccountConfiguration.set_config :app_url, 'http://localhost:3000/'
Account::AccountConfiguration.set_config :app_name, 'My App'
Account::AccountConfiguration.set_config :mail_charset, 'utf-8'
Account::AccountConfiguration.set_config :security_token_life_days, 360
Account::AccountConfiguration.set_config :two_column_input, true
Account::AccountConfiguration.set_config :changeable_fields, [ 'firstname', 'lastname' ]
Account::AccountConfiguration.set_config :delayed_delete, false
Account::AccountConfiguration.set_config :delayed_delete_days, 7
Account::AccountConfiguration.set_config :user_table, 'users'
Account::AccountConfiguration.set_config :use_email_notification, false
Account::AccountConfiguration.set_config :salt,'Put Salt Here'